package com.aliyeye.sevice.Impl;

import com.aliyeye.bean.User;
import com.aliyeye.mapper.CommonUserMapper;
import com.aliyeye.mapper.IUserMapper;
import com.aliyeye.sevice.IUserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version V999
 * @package com.aliyeye.sevice.Impl
 * @description: 来自三年开发经验，月薪100k，大佬代码
 * @author: 痞子洋
 * @date: 2019/6/9 23:12
 */
@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserMapper userMapper;
    @Autowired
    private CommonUserMapper commonUserMapper;

    @Override
    public User queryUserById(Long id) {
        return userMapper.queryUserById(id);
    }
    @Override
    public User queryUserById2(Long id) {
        return commonUserMapper.selectByPrimaryKey(id);
    }
}
